package top.wshape1.shiziapi.uaa.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2023-08-24
 */

@Configuration
public class ShiZiApiConfig {

    @Value("${shiziapi.jwt.sign-key}")
    public String SIGN_KEY;

    @Value("${shiziapi.ip-white-list}")
    public String IP_WHITE_LIST_STRING;

    @Value("${shiziapi.ip-white-list}")
    public List<String> IP_WHITE_LIST;

    @Value("${shiziapi.jwt.duration-days:14}")
    public Integer DURATION_DAYS;

    @Value("${shiziapi.code.reg-timeout}")
    public Integer REG_TIMEOUT;

    @Value("${shiziapi.code.forget-timeout}")
    public Integer FORGET_TIMEOUT;


}
